#!/usr/bin/python
# -*- coding: utf-8 -*-

#-------------------------------------------------
#Create At: 2008-12-17 下午02:20:39 
#Create By: Fla.sam
#
#DESC: 
#
#-------------------------------------------------


from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin


# Uncomment the next two lines to enable the admin:
admin.autodiscover()

urlpatterns = patterns( '',
    
    ( r'^$', 'CoreApp.views.index_view' ),
    ( r'^home/$', 'CoreApp.views.home_view' ),
    
    ( r'^user-manage/', include( 'CoreApp.user_manage_urls' ) ),
    ( r'^nav-manage/$', 'CoreApp.views.home_view' ),
    ( r'^desktop-manage/$', 'CoreApp.views.home_view' ),
    ( r'^history/$', 'CoreApp.views.home_view' ),
    ( r'^account/', include( 'CoreApp.account_urls' ) ),

    ( r'^comments/', include( 'django.contrib.comments.urls' ) ),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    ( r'^admin/doc/', include( 'django.contrib.admindocs.urls' ) ),

    
    
    # Uncomment the next line to enable the admin:
    ( r'^admin/(.*)', admin.site.root ),
    
 )

if settings.DEBUG:
    urlpatterns += patterns( '',
                            ( r'^medias/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True} ),
                            )
                            